package com.maple.sdk.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description TSystemRole entity
 * @author 李铭浩
 * @Date 2012-11-5
 * @Porject  BasicRole
 */
@Entity
@Table(name="T_SYSTEM_ROLE")
@SuppressWarnings("serial")
public class TSystemRole extends BaseEntity {

	// Fields

	private Long parentTrId;
	private String roleName;
	private Date genTime;
	private String description;

	// Constructors

	/** default constructor */
	public TSystemRole() {
	}

	/** full constructor */
	public TSystemRole(Long parentTrId, String roleName, Date genTime,
			String description) {
		this.parentTrId = parentTrId;
		this.roleName = roleName;
		this.genTime = genTime;
		this.description = description;
	}
	@Column(name="PARENT_TR_ID")
	public Long getParentTrId() {
		return this.parentTrId;
	}

	public void setParentTrId(Long parentTrId) {
		this.parentTrId = parentTrId;
	}
	@Column(name="ROLE_NAME")
	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	@Column(name="GEN_TIME")
	//@DateFormat( message="{register.date.error}")
	public Date getGenTime() {
		return this.genTime;
	}

	public void setGenTime(Date genTime) {
		this.genTime = genTime;
	}
	@Column(name="DESCRIPTION")
	public String getDescription() {
		return this.description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}

}